package regulation.auto.com.parser;

import com.alibaba.fastjson.JSON;
import com.ptjob.basecore.parse.ClientMobileParser;

import org.json.JSONObject;

import regulation.auto.com.bean.LoginBean;

/**
 * Created by lidongming on 2016/10/19.
 */

public class LoginParser extends ClientMobileParser<LoginBean> {

    @Override
    public LoginBean parse(JSONObject data) throws Exception {
        if (data != null) {
            return JSON.parseObject(data.toString(), LoginBean.class);
        }
        return null;
    }

}
